package ar.edu.unicen.exa.isistan.archassis.actions;

import java.util.HashMap;
import java.util.Map;


public class PackageAction implements IAction {
	protected ActionType _m;
	protected String _packageName;
	private Map<String,String> metadata = new HashMap<String, String>();
	
	public PackageAction(ActionType m, String packageName) {
		this._m = m;
		this._packageName = packageName;
	}

	@Override
	public String getDescription() {
		return "[" + _m + " " + _packageName + "]";
	}

	@Override
	public void addMetadata(String key, String value) {
		metadata.put(key, value);
	}

	/* (non-Javadoc)
	 * @see ar.edu.unicen.exa.isistan.svnhumandiff.actions.IAction#getMetadata()
	 */
	@Override
	public Map<String, String> getMetadata() {
		return metadata;
	}
	
}
